package com.example.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 *
 * @author 王令
 * @since 2022-08-05
 */
@Data
@Accessors(chain = true)
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 性别
     */
    private Integer gender;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    @JsonInclude(Include.NON_EMPTY)
    private String email;

    /**
     * 头像url
     */
    @JsonInclude(Include.NON_EMPTY)
    private String avatar;

    /**
     * 角色集
     */
    private List<RoleVo> roles;

    private List<DeptVo> depts;

    /**
     * 锁定
     */
    private Boolean nonLocked;

    /**
     * 状态
     */
    private Boolean enabled;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

}
